package com.huazi.eduservice.client;

import com.huazi.commonutils.CommentResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author shkstart
 * @create 2021-03-23 19:26
 */
@FeignClient(name="service-vod",fallback = VodClientFallback.class)//这里的服务名称要与提供者一致
@Component//交给ioc管理
public interface VodClient {
    //删除视频
    @DeleteMapping(value="/eduvod/video/deleteVodVideo/{id}")
    CommentResult deleteVodVideo(@PathVariable("id") String id);

}
